package com.qf.service;

import com.github.pagehelper.PageInfo;
import com.qf.bean.Employee;

/**
 * 2020/2/2
 * 键盘敲烂，月薪过万
 * 登高必自卑，行远必自迩。
 * 不忘初心：像初学者一样拥有一颗谦虚、开放的心态。
 * 李学峰
 */
public interface EmployeeService {
  //查询全部+分页
    public PageInfo<Employee>getall(
            int pageIndex,int pageSize,  String username,String rolename,String deptname);

    //登录方法
    public Employee login(String username,String password);

    int deleteByPrimaryKey(Integer id);

    int insert(Employee rocord);

    int insertSelective(Employee rocord);

    Employee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employee rocord);

    int updateByPrimaryKey(Employee employee);
}
